<template>
  <div ref="config">
    <el-form ref="form" :model="form" label-width="9rem">
      <el-form-item label="报名时间">
        <el-date-picker
          v-model="form.sign_dateTime"
          type="datetimerange"
          range-separator="至"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
        >
        </el-date-picker>
      </el-form-item>
      <el-form-item label="线上抽签直播时间">
        <el-date-picker
          v-model="form.live_broadcast_datetime"
          type="date"
        ></el-date-picker>
      </el-form-item>
      <el-form-item label="车位选择初始时间">
        <el-date-picker
          v-model="form.choose_datetime"
          type="date"
        ></el-date-picker>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  watch: {
    form: {
      deep: true,
      handler: function () {
        this.$store.commit("set_lottery_config", this.form);
      },
    },
  },
  data() {
    return {
      form: {
        sign_dateTime: "",
        live_broadcast_datetime: "",
        choose_datetime: "",
      },
    };
  },
};
</script>
<style scoped>
</style>

